/**
 * @Date 2023-02-24 10:35:08
 * @Remark
 */

// react
// lib
import { HomeOutlined, UserOutlined } from "@ant-design/icons";
// config
import { ROUTE_MAIN_VIEW } from "project/config";
// logic
// 仪表盘
import Dashboard from "app/Dashboard";
// 模块
import system from "./system";
import illegal from "./illegal";
import books from "./books";
import borrow from "./borrow";
import { lazy } from "react";
// 其它

/**
 * 配置
 * 基本都进行延迟加载
 */
const MAIN_ROUTES: AppRouteItem[] = [
  {
    name: "首页",
    path: ROUTE_MAIN_VIEW,
    icon: HomeOutlined,
    component: Dashboard,
    index: true,
    code: 'main'
  },
  {name: "用户管理",
    icon: UserOutlined,
     path: "user",
     component: lazy(() => import("../../app/User")),
     code: 'user:list'
   },
   {name: "图书检索",
    icon: UserOutlined,
     path: "query",
     component: lazy(() => import("../../app/Query")),
     code:"query"
   },
   books,
   borrow,
  illegal,
  system,
  // content,
  // marketing,
  // evaluate,
  // afterSale,
  // interest,
];

export default MAIN_ROUTES;
